package day16.feifei.homework;

import java.io.*;

public class Four {
    public static void main(String[] args) throws IOException {
        InputStream is=new FileInputStream("D:\\file\\work\\src\\five.txt");
        OutputStream op=new FileOutputStream("D:\\file\\work\\src\\six.txt");

        while(true){
            int read = is.read();
            if(read>=0){
                op.write(read);
            }else {

                break;
            }

        }

        FileInputStream is1 = new FileInputStream("D:\\file\\work\\src\\four.txt");
             InputStreamReader isr = new InputStreamReader(is1, "UTF-8");
             BufferedReader br = new BufferedReader(isr);
            String line;
            while ((line = br.readLine()) != null) {
                System.out.println(line);
            }
    }
    }

